package cn.itsource.system.mapper;


import cn.itsource.system.domain.Role;
import cn.itsource.system.query.RoleQuery;

import java.util.List;

/**
* @author huawei
* @description 针对表【tb_role】的数据库操作Mapper
* @createDate 2024-06-12 19:23:14
* @Entity cn.itsource.domain.Role
*/
public interface RoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> selectAll(RoleQuery roleQuery);

    void deleteAll(List<Role> r);

    void savaRoleMenus(Role r);

    void savaPermissions(Role r);

    void deleteRoleMenus(Long rid);

    void deleteRolePermissions(Long pid);
}
